package com.zy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zy.entity.ZyUser;
import org.apache.ibatis.annotations.Insert;
import org.springframework.stereotype.Repository;

/**
 * zy_user_role_mapping中间表
 */
@Repository
public interface UserRoleMapper extends BaseMapper<ZyUser> {

    @Insert("insert into zy_user_role_mapping(user_id,role_id) values(#{userId},#{roleId})")
    void addUserRoleMapping(Integer userId, Integer roleId);

}
